# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.WalletObjects.V1.Model.EventSeat do
  @moduledoc """


  ## Attributes

  *   `gate` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - The gate the ticket holder should enter to get to their seat, such as "A" or "West". This field is localizable so you may translate words or use different alphabets for the characters in an identifier.
  *   `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string `"walletobjects#eventSeat"`.
  *   `row` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - The row of the seat, such as "1", E", "BB", or "A5". This field is localizable so you may translate words or use different alphabets for the characters in an identifier.
  *   `seat` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - The seat number, such as "1", "2", "3", or any other seat identifier. This field is localizable so you may translate words or use different alphabets for the characters in an identifier.
  *   `section` (*type:* `GoogleApi.WalletObjects.V1.Model.LocalizedString.t`, *default:* `nil`) - The section of the seat, such as "121". This field is localizable so you may translate words or use different alphabets for the characters in an identifier.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :gate => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
          :kind => String.t() | nil,
          :row => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
          :seat => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
          :section => GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil
        }

  field(:gate, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
  field(:kind)
  field(:row, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
  field(:seat, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
  field(:section, as: GoogleApi.WalletObjects.V1.Model.LocalizedString)
end

defimpl Poison.Decoder, for: GoogleApi.WalletObjects.V1.Model.EventSeat do
  def decode(value, options) do
    GoogleApi.WalletObjects.V1.Model.EventSeat.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.WalletObjects.V1.Model.EventSeat do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
